#ifndef SYSAPI_H
#define SYSAPI_H
#include "ComStruct.h"
#include <net/if.h>
#include <net/if_arp.h>
#include <netinet/in.h>

#include "syscfg.h"

extern bool g_fAppExit;

bool GetSysTime(TTime* pTime);
bool SetSysTime(const TTime& t);
void SyncTimer();
DWORD GetClick();
DWORD GetTick();
void SysInit();
void SysCleanup();

bool IsAppExit();
bool IsAppExitDone();

void ResetApp();
void ResetCPU(void);
int IfReadListProc(char *target); //����ֵ1��ʾ���ųɹ�;0��ʾ���Ź����;-1��ʾ����ʧ��
DWORD GetLocalAddr(char* interface);
bool InitDir();
unsigned int freespace(char* disk);

int CloseConsole(void);
int OpenConsole(void);
bool IsConsoleClosed();
void SetConsoleVal(bool var);
#endif //SYSAPI_H
